package com.mem.barrier;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author fanhb on 2021/6/10
 * @desc xxxx
 */
public class ReentrentLockDemo {

    public static void main(String[] args) {
        ReentrantLock rl = new ReentrantLock();
        rl.lock();

        try {
            Condition condition = rl.newCondition();

            System.out.println("hello");
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            rl.unlock();
        }
    }
}
